package com.aos.erp.schools.model.student;

import com.aos.erp.schools.enums.student.IsDel;
import com.aos.erp.schools.enums.student.StudentStatus;
import com.aos.erp.schools.enums.student.SubjectType;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;

/**
 * @Auther: chb
 * @Date: 2018/11/2 14:21
 * @Description:
 * 培训科目教练分配学员 表
 */
@Data
@TableName("t_coach_student")
public class CoachStudent  implements Serializable {

    @TableId(value = "id", type = IdType.INPUT)
    private long id;

    //驾校ID
    @TableField("drivers_id")
    private long driversId;

    //教练ID
    @TableField("coach_id")
    private long coachId;

    //学员ID
    @TableField("student_id")
    private long studentId;

    //培训科目（1：科目一,2：科目二,3：科目三,4：科目四）
    @TableField("subject")
    private SubjectType subject;

    //0：结束（在科目三考试合格后变为结束状态）\r\n2：科目二在培中\r\n   21：科目二预约考试中\r\n3：科目三在培中\r\n  31：科目三预约考试中
    @TableField("status")
    private StudentStatus status=StudentStatus.newenroll;

    // 操作人ID
    @TableField("operator_id")
    private Long operatorId;

    //是否删除（0：否    1：是）
    @TableField("is_del")
    private IsDel isDel=IsDel.normal;

    //修改时间
    @TableField("updated")
    private Date updated;

    //创建时间
    @TableField("created")
    private Date created;





    public String getStudentStatusName()
    {
        return status.getDesc();
    }

    public String getIsDelName()
    {
        return isDel.getDesc();
    }

}
